(function() {
    abstract class Animal{
        name: string;
        constructor(name: string){
            this.name = name;
        }
        abstract sayhello():void;
    }

    class Cat extends Animal{
        sayhello(){
            console.log('汪汪汪');
        }
    }
})();